<?php
/**
 * Created by PhpStorm.
 * User: shaowei
 * Date: 2019/1/23
 * Time: 上午10:34
 */

namespace App\Http\Model;


use App\Http\Services\CommonServices;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;

class GameLesson extends Base
{
    protected $table = "game_lesson";

    CONST TYPE_TRUTH_OR_DARE = 0;

    public function __construct(array $attributes = [])
    {
        parent::__construct($this->table, $attributes);
    }

    public function lessons(int $type) {
        return self::where('type', $type)->where('status', 0)->get()->toArray();
    }
}
